package com.devplatform.pojo.article;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @TableName comments
 */
@TableName(value = "comments")
@Data
public class Comments {
    @TableId(type = IdType.AUTO)
    private Integer commentId;

    private Long articleId;

    @TableField("user_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    private String commentContent;

    private Date commentTime;

    private Integer likeCount;

    private Integer reportCount;
    @TableLogic
    private Integer isDeleted;

    private String likedUserIds;
}